import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 纱种工艺
 * */
// 创建
export const spinVarietyYarnSpecCreate = (data) => postRequest('/spin/variety-yarn-spec/create', data);

// 更新
export const spinVarietyYarnSpecUpdate = (data) => putRequest('/spin/variety-yarn-spec/update', data);

// 删除
export const spinVarietyYarnSpecDelete = (params) => deleteRequest('/spin/variety-yarn-spec/delete', params);

// 获得
export const spinVarietyYarnSpecGet = (params) => getRequest('/spin/variety-yarn-spec/get', params);

// 获得分页
export const spinVarietyYarnSpecPage = (params) => getRequest('/spin/variety-yarn-spec/page', params);

// 导出 Excel
export const spinVarietyYarnSpecExportExcel = (params) => getRequest('/spin/variety-yarn-spec/export-excel', params);

// 提交
export const spinVarietyYarnSpecSubmitAudit = (params) => postRequest('/spin/variety-yarn-spec/submit-audit', params);
// 撤销提交
export const spinVarietyYarnSpecClearSubmitAudit = (params) => postRequest('/spin/variety-yarn-spec/clear-submit-audit', params);
// 审核
export const spinVarietyYarnSpecAudit = (params) => postRequest('/spin/variety-yarn-spec/audit', params);
// 撤销审核
export const spinVarietyYarnSpecClearAudit = (params) => postRequest('/spin/variety-yarn-spec/clear-audit', params);
// 保存并审核
export const spinVarietyYarnSpecCreateAudit = (params) => postRequest('/spin/variety-yarn-spec/create-audit', params);
// 更新并审核
export const spinVarietyYarnSpecUpdateAudit = (params) => putRequest('/spin/variety-yarn-spec/update-audit', params);
// 关闭
export const spinVarietyYarnSpecClose = (params) => postRequest('/spin/variety-yarn-spec/close', params);
// 撤销关闭
export const spinVarietyYarnSpecClearClose = (params) => postRequest('/spin/variety-yarn-spec/clear-close', params);
